<?php
namespace app\web\controller\admin;

use app\admin\library\AdminController;

class Index extends AdminController{
    public function onIndex(){
        return $this->display();
    }

    public function onGetThemePath(){
        $config = $this->app->config('template');

        if (!$config->theme){
            throw new \Exception('未设置路径');
        }

        return ['path'=>$config->theme];
    }
}